# -*- coding: utf-8 -*-
"""
-------------------------------------------------
   File Name：     MouseButtonOperation.py
   Description :   
   Author :        ZhangYiLin
   date：          2020/12/29 11:49
-------------------------------------------------
   Change Activity:
                   2020/12/29 11:49
-------------------------------------------------
"""
from pymouse import PyMouse  # 鼠标
from pykeyboard import PyKeyboard, PyKeyboardEvent  # 键盘

class MouseButtonOperation:

    def __init__(self):
        self.mouse = PyMouse()
        self.key_board = PyKeyboard()

    def key_down(self, key_name):
        """
        按下键盘上的键
        """
        self.key_board.press_key(key_name)
        
    def key_up(self, key_name):
        """
        放开键盘上的键
        """
        self.key_board.release_key(key_name)

    # TODO 按下多个按键
    # TODO 鼠标操作